import $ from "./dh.js";

let oBtns=document.querySelectorAll("span");
let oUl=document.querySelector("ul");

oBtns.forEach((item,index)=>{
    item.addEventListener("click",()=>{
        $.aniamte(oUl,"top",index*-175);
        for(var i=0;i<oBtns.length;i++){
            oBtns[i].className=i===index?"current":"";
        }
    })
})